package net.dgg.dggcloud.service.jrcrm.entity.orf;

import net.dgg.dggcloud.service.entity.BaseEntity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.Transient;

/**
 * @author 鲜林材
 * 订单关联表
 * @create 2017-11-06 14:43
 **/
@Entity
@Table(name = "orf_order_contact")
public class OrderContact extends BaseEntity {

    //数据库表名
    public static final String TABLE_NAME = "orf_order_contact";

    @Column(name = "name")
    private String name;//借贷人名称

    @Column(name = "card_id")
    private String cardId;//身份证号码

    @Column(name = "no")
    private String no;//联系电话

    @Column(name = "no_bak")
    private String noBak;//联系电话 备份

    @Column(name = "relationship_of_cus")
    private String relationshipOfCus;//与主借贷人关系

    @Column(name = "children_num")
    private Integer childrenNum;//子女情况

    @Column(name = "marital_status")
    private String maritalStatus;//婚姻状况

    @Column(name = "no_know")
    private Integer noKnow;//家属是否知晓

    @Column(name = "order_id")
    private Long orderId;//订单id

    @Column(name = "lender_status")
    private Integer lenderStatus;//借贷人身份0主借贷人1次借贷人

    /**
     * 主联系人id
     */
    @Column(name = "main_contact_id")
    private Long mainContactId;

    /**
     * 是否是本人 0不是1是
     */
    @Column(name = "is_self")
    private Integer isSelf;

    @Transient
    private String encryptNo;


    public String getNoBak1() {
        return noBak;
    }

    public void setNoBak(String noBak) {
        this.noBak = "";
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getCardId() {
        return cardId;
    }

    public void setCardId(String cardId) {
        this.cardId = cardId;
    }

    public String getNo() {
        return no;
    }

    public void setNo(String no) {
        this.no = no;
    }

    public String getRelationshipOfCus() {
        return relationshipOfCus;
    }

    public void setRelationshipOfCus(String relationshipOfCus) {
        this.relationshipOfCus = relationshipOfCus;
    }

    public Integer getChildrenNum() {
        return childrenNum;
    }

    public void setChildrenNum(Integer childrenNum) {
        this.childrenNum = childrenNum;
    }

    public String getMaritalStatus() {
        return maritalStatus;
    }

    public void setMaritalStatus(String maritalStatus) {
        this.maritalStatus = maritalStatus;
    }

    public Integer getNoKnow() {
        return noKnow;
    }

    public void setNoKnow(Integer noKnow) {
        this.noKnow = noKnow;
    }

    public Long getOrderId() {
        return orderId;
    }

    public void setOrderId(Long orderId) {
        this.orderId = orderId;
    }

    public Integer getLenderStatus() {
        return lenderStatus;
    }

    public void setLenderStatus(Integer lenderStatus) {
        this.lenderStatus = lenderStatus;
    }

    public Long getMainContactId() {
        return mainContactId;
    }

    public void setMainContactId(Long mainContactId) {
        this.mainContactId = mainContactId;
    }


    public Integer getIsSelf() {
        return isSelf;
    }

    public void setIsSelf(Integer isSelf) {
        this.isSelf = isSelf;
    }

    public String getEncryptNo() {
        return encryptNo;
    }

    public void setEncryptNo(String encryptNo) {
        this.encryptNo = encryptNo;
    }
}
